WooCommerce\Square\Handlers\Products C

Total Complexity 116
Dependencies 8
Dependents 1
Total lines 751
Lines of code 366
Logical lines of code 195
Comment lines 241
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
process_product_data()
A
52 15 21
maybe_adjust_square_stock()
A
47 12 34
add_product_data_fields()
A
46 8 39
add_notice_product_hidden_from_catalog()
A
51 9 24
set_synced_with_square()
A
54 9 19
maybe_stage_product_for_sync()
S
58 8 15
validate_product_update_and_sync()
S
53 5 25
filter_products_synced_with_square()
S
56 5 17
handle_product_duplication()
S
58 5 17
add_filter_products_synced_with_square_option()
S
59 4 14
export_sync_status_taxonomy()
S
60 4 13
output_synced_with_square_edit_field()
S
53 3 25
import_sync_status()
S
63 4 10
maybe_sync_staged_products()
S
72 4 5
maybe_stage_products_for_deletion()
S
67 4 8
check_product_sync_errors()
S
63 3 11
maybe_delete_staged_products()
S
73 3 5
add_products_edit_screen_hooks()
S
57 1 15
add_bulk_edit_inputs()
S
81 1 3
add_quick_edit_inputs()
S
82 1 3
add_product_sync_hooks()
S
70 1 6
format_product_error()
S
71 1 6
get_plugin()
S
82 1 3
add_sync_status_to_column()
S
75 1 4
add_product_edit_screen_hooks()
S
69 1 6
register_sync_status_for_importer()
S
75 1 4
map_sync_status_column()
S
75 1 4
__construct()
S
64 1 10